import request from './request.js';
let service = request.service;
let download = request.download;
export default {
    agentsList(data) {
        /**获取三类医疗制造商列表 */
        return service({
            url: `/adscm/operation/yx/agents/select`,
            method: 'post',
            data
        })
    },
    addUpdateAgent(type,data){
        /**新增修改 三类医疗制造商*/
        return service({
            url: `/adscm/operation/yx/agents/${type}`,
            method: 'post',
            data
        })
    },
     hospitalList(data) {
        /**获取三类医疗制造商列表 */
        return service({
            url: `/adscm/operation/yx/hospital/select`,
            method: 'post',
            data
        })
    },
    addUpdateHospital(type, data) {
        /**新增修改 三类医疗制造商*/
        return service({
            url: `/adscm/operation/yx/hospital/${type}`,
            method: 'post',
            data
        })
    },

}
